package com.dashu.authority.repository;

import java.util.List;
import java.util.Map;

import com.dashu.authority.entity.Menu;
import com.github.abel533.mapper.Mapper;

public interface MenuMapper extends Mapper<Menu> {
	public List<Menu> queryAllByExample(Map<Object,Object> params);	
	public Integer insertEntity(Menu entity);
	public Integer updateEntity(Menu entity);
	public Integer deleteByIds(Map<Object,Object> params);	
	public String findMenuNameByPerantId(Integer parentId);
	public Integer updateStatus(Map<Object,Object> params);
	//分页查找id不等parentId的数据
	public List<Menu> queryIdNotSamePId(Map<Object,Object> params);
	
	
	public List<Menu> queryMenuTreeList(Map<Object,Object> params);
	public List<Menu> queryMenutChildrenById(String parentId);
}